const modules = {}
const result = import.meta.glob('./*.js')

Object.keys(result).forEach(key => {
    const name = key.replace(/^\.\/(.*)\.js$/, '$1')
    modules[name] = result[key].default || result[key]
})

export default modules
